<!doctype html>
<html>
<head>
    <#include "include/common.header.ftl" >
    <script type="text/javascript" src="/js/r_order.js"></script>
</head>
<body style="margin: 1px">
<table id="dg" title="日常保洁" class="easyui-datagrid"
       fitColumns="true" pagination="true" rownumbers="true"
       url="/demo01/test?state=1&limit=10&sort=orderNumber" fit="true" toolbar="#tb">
    <thead>
    <tr>
        <th field="cb" checkbox="true" align="center"></th>
        <th field="phoneNumber" width="50" align="center">手机号</th>
        <th field="orderNumber" width="50" align="center" >订单编号</th>
        <th field="address" width="50" align="center" >服务地址</th>
        <th field="servicePersonal" width="50" align="center">服务人员</th>
        <th field="realPrice" width="50" align="center" >实际价格</th>
        <th field="service_Price" width="50" align="center" >服务人员收入</th>
        <th field="orderState" width="50" align="center" >订单状态</th>
    </tr>
    </thead>
</table>
<div id="tb">
    <div>
       <!-- <a href="javascript:openSaleChanceAddDialog()" class="easyui-linkbutton" iconCls="icon-add" plain="true">创建</a>-->
        <a href="javascript:openSaleChanceModifyDialog()" class="easyui-linkbutton" iconCls="icon-edit" plain="true">详情/修改</a>
        <a href="javascript:deleteSaleChance()" class="easyui-linkbutton" iconCls="icon-remove" plain="true">删除</a>
    </div>
    <div>
        &nbsp;手机号：&nbsp;<input type="text" id="s_phoneNumber" size="20" onkeydown="if(event.keyCode==13) searchSaleChance()"/>
        &nbsp;订单编号：&nbsp;<input type="text" id="s_orderNumber" size="20" onkeydown="if(event.keyCode==13) searchSaleChance()"/>
        &nbsp;服务人员：&nbsp;<input type="text" id="s_servicePersonal" size="20" onkeydown="if(event.keyCode==13) searchSaleChance()"/>
        &nbsp;订单状态：&nbsp;<select class="easyui-combobox" id="s_orderState"  >
        <option value="">请选择...</option>
        <option value="待支付">待支付</option>
        <option value="已取消">已取消</option>
        <option value="待接单">待接单</option>
        <option value="已接单">已接单</option>
        <option value="已完成">已完成</option>
    </select>
        <a href="javascript:searchSaleChance()" class="easyui-linkbutton" iconCls="icon-search" plain="true">搜索</a>
    </div>
</div>

<div id="dlg" class="easyui-dialog" style="width:700px;height:450px;padding: 10px 20px"
     closed="true" buttons="#dlg-buttons">
        <input type="text" id="tag" name="tag" value="0"  hidden="true"/>
    <form id="fm" method="post">
        <table cellspacing="8px">
            <tr>
                <td>订单类型：</td>
                <td>
                	<select class="easyui-combobox" id="type" name="type" style="width: 175px" class="easyui-validatebox" required="true" >
                        <option value="日常保洁">日常保洁</option>
                        <option value="沙发护理">沙发护理</option>
                        <option value="开荒保洁">开荒保洁</option>
                         <option value="家电清洗">家电清洗</option>
                         <option value="地板护理">地板护理</option>
                         <option value="擦玻璃">擦玻璃</option>
                    </select>
                </td>
                <td>手机号：</td>
                <td><input type="text"  class="tip" id="phoneNumber" name="phoneNumber" class="easyui-validatebox" required="true"/></td>
            </tr>
            <tr>
                <td>订单编号：</td>
                <td><input type="text"  class="only"    id="orderNumber" name="orderNumber" class="easyui-validatebox" required="true" /></td>
                <td>优惠券编号：</td>
                <td><input type="text"  class="only" id="redeemCode" name="redeemCode" class="easyui-validatebox easyui-tooltip" title="*不能修改" required="true" /></td>
            </tr>
            <tr>
                <td>保洁时间：</td>
                <td><input type="text" id="timeSlot" name="timeSlot" class="easyui-validatebox" required="true" /></td>
                </td>
                <td>预定时间：</td>
                <td><input type="text" id="orderTime" name="orderTime"  class="easyui-datebox" required="true"/></td>
            </tr>
            <tr>
                <td>服务时长：</td>
                <td><input type="text" class="only"  id="serviceTime" name="serviceTime" class="easyui-validatebox" required="true"/></td>
                <td>服务地址：</td>
                <td><input type="text"  class="only" id="address" name="address" class="easyui-validatebox" required="true"/></td>
            </tr>
            <tr>
                <td>具体地址：</td>
                <td><input type="text"  class="only" id="detailAddress" name="detailAddress" class="easyui-validatebox" required="true"/></td>
                <td>联系手机：</td>
                <td><input type="text" id="realPhoneNumber" name="realPhoneNumber" class="easyui-validatebox" required="true"/></td>
            </tr>
            <tr>
                <td>服务人员：</td>
                <td><input type="text"  class="only" id="servicePersonal" name="servicePersonal" class="easyui-validatebox" required="true"/></td>
                <td>保洁剂价格：</td>
                <td><input type="text"  class="only" id="cleaningSupplies_Price" name="cleaningSupplies_Price" class="easyui-validatebox" required="true"/></td>
            </tr>
            <tr>
                <td>总价：</td>
                <td><input type="text"  class="only" id="price" name="price" class="easyui-validatebox" required="true"/></td>
                <td>实际价格：</td>
                <td><input type="text"  class="only" id="realPrice" name="realPrice" class="easyui-validatebox" required="true"/></td>
            </tr>
             <tr>
                <td>人员收入价格：</td>
                <td><input type="text"  class="only" id="service_Price" name="service_Price" class="easyui-validatebox" required="true"/></td>
                <td>订单状态：</td>
                <td>
                <select class="easyui-combobox" id="orderState" name="orderState" style="width: 175px" class="easyui-validatebox" required="true" >
                        <option value="待支付">待支付</option>
                        <option value="已取消">已取消</option>
                        <option value="待接单">待接单</option>
                         <option value="已接单">已接单</option>
                         <option value="已完成">已完成</option>
                    </select>
                </td>
            </tr>
             <tr>
                <td>评分：</td>
                <td><input type="text"  class="only" id="score" name="score" class="easyui-validatebox" required="true"/></td>
                <td>评价时间：</td>
                <td><input type="text" class="only" id="evaluationTime" name="evaluationTime" class="easyui-datetimebox" required="true"/></td>
                 </tr>
                 <tr>
		                <td>用户昵称：</td>
		                <td><input type="text"  class="only" id="petName" name="petName" class="easyui-validatebox" required="true"/></td>
		                <td>阿姨名字：</td>
		                <td><input type="text"  class="only" id="auntName" name="auntName" class="easyui-validatebox" required="true"/></td>
                 </tr>
                  <tr>
	                <td>优惠额度：</td>
	                <td><input type="text" id="disCount" name="disCount" 　 class="only"   class="easyui-validatebox" required="true"/></td>
	              </tr>
             <tr>
                <td>评价：</td>
                <td>
           <textarea rows="4" cols="30" class="only" id="evaluation" name="evaluation" class="easyui-validatebox" required="true"></textarea></td>
            </tr>
            
        </table>
    </form>
</div>

<div id="dlg-buttons">
    <a href="javascript:saveSaleChance()" class="easyui-linkbutton" iconCls="icon-ok">保存</a>
    <a href="javascript:closeSaleChanceDialog()" class="easyui-linkbutton" iconCls="icon-cancel">关闭</a>
</div>
</body>
</html>